<script setup>
import { ref } from 'vue'
const reportType = [
  {
    value: '0',
    label: '视频',
  },
  {
    value: '1',
    label: '用户',
  },
  {
    value: '2',
    label: '评论',
  },
]
const options = [
  {
    value: '0',
    label: '待处理',
  },
  {
    value: '1',
    label: '已处理',
  },
]

const tableData = ref([
  {
    date: '2016-05-03',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Home',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Office',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Home',
  },
])
</script>
<template>
  <el-container>
    <el-header>
      <el-form>
        <el-form-item>
          <span>举报人</span>
          <el-input v-model="title" style="width: 240px" placeholder="请输入举报人" />
        </el-form-item>
        <el-form-item>
          <span>举报类型</span>
          <el-select v-model="value" placeholder="请选择" style="width: 120px">
            <el-option v-for="item in reportType" :key="item.value" :label="item.label" :value="item.value" />
          </el-select>
        </el-form-item>
        <el-form-item>
          <span>状态</span>
          <el-select v-model="value" placeholder="请选择" style="width: 120px">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary">
            <el-icon>
              <Search />
            </el-icon>搜索
          </el-button>
          <el-button>
            <el-icon>
              <Refresh />
            </el-icon>重置
          </el-button>
        </el-form-item>
      </el-form>
    </el-header>
    <el-main>
      <el-table :data="tableData" style="width: 100%"  height="340">
        <el-table-column fixed prop="date" label="Date" width="150" />
        <el-table-column prop="name" label="Name" width="120" />
        <el-table-column prop="state" label="State" width="120" />
        <el-table-column prop="city" label="City" width="120" />
        <el-table-column prop="address" label="Address" width="600" />
        <el-table-column prop="zip" label="Zip" width="120" />
        <el-table-column fixed="right" label="Operations" min-width="120">
          <template #default>
            <el-button link type="primary" size="small" >
              Detail
            </el-button>
            <el-button link type="primary" size="small">Edit</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-main>
    <el-footer>
      <el-pagination background layout="prev, pager, next" :total="1000" />
    </el-footer>
  </el-container>
</template>
<style scoped lang="scss">
@import url("@/assets/style/manage.scss");
</style>
